module.exports = {
    presets: [
        '@vue/babel-preset-jsx',
        [
            '@vue/cli-plugin-babel/preset',
            {
                useBuiltIns: 'usage',
                corejs: 3,
                jsx: {
                    injectH: false,
                },
            },
        ],
    ],
    plugins: [
        'lodash',
        [
            'import',
            {
                libraryName: '@yiducloud/yidu-ui',
                style: true,
                customStyleName: name =>
                    `@yiducloud/yidu-ui/lib/packages/theme/src/${name.replace(/^y-/, '')}.scss`,
            },
        ],
    ],
};
